#ifndef MYCONSOLE1_H
#define MYCONSOLE1_H

#include "people.h"
#include "myconsole3_networking.h"

class MyConsole1
{
public:
    MyConsole1(MyConsole3_networking *pConsoleNetworking = NULL);
    ~MyConsole1();
    void start();
    static MyConsole1 *theInstance;
protected:
    void Add();
    void Remove();
    void outputPeopleInfo();
    void Search();
    void DefineWoman();
    void DefineMan();
    void outPutManInfo();
    void outputWomanInfo();

    void choice();
    virtual void outputString(QString);
    virtual QString getInputString(QString);

    void AddMale();
    void AddFemale();
    void AddPersonInfo(QString &name, QString &age, QString &location);

    People _women;
    People _men;
    ostream &_os;
    istream &_is;
    MyConsole3_networking *_pConsoleNetworking;

};

#endif // MYCONSOLE1_H
